package com.yunxin.core.customer.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class OperationWechatCustomerInfoDto {

    @Schema(description = "企微客户id")
    @NotNull(message = "企微客户id不能为空")
    private Long wechatCustomerId;

    @Schema(description = "跟进状态 0未跟进 1已跟进")
    private Integer followStatus;

    @Schema(description = "成单时间")
    private Date makeOrderTime;

    @Schema(description = "用户id",hidden = true)
    private Long userId;


    @Schema(description = "分配产品集合")
    private List<OperationCustomerInfoDto.CustomerMatchingProductDto> matchingProductDtoList;

    @Data
    public static  class CustomerMatchingProductDto {

        @Schema(description = "匹配产品id")
        private Long matchingProductId;

        @Schema(description = "申请数量")
        private Integer count;

        @Schema(description = "-1.失败 0.申请中 1成功")
        private Integer status;

    }
}
